/* ==============================================
   全局基础样式
   ============================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  line-height: 1.5;
}
ul { list-style: none; }
a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover {
  color: #005bac;
  text-decoration: underline;
}
.w1200 {
  width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==============================================
   顶部Banner（对应BrowserPreview_01.gif）
   ============================================== */
.top-banner {
  width: 100%;
  background-color: #fff;
}
.top-banner img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* ==============================================
   主导航栏
   ============================================== */
nav[role="navigation"] {
  background-color: #005bac;
  height: 35px;
  line-height: 35px;
}
nav[role="navigation"] ul {
  display: flex;
  gap: 2px;
}
nav[role="navigation"] li {
  background-color: #005bac;
}
nav[role="navigation"] a {
  display: block;
  color: #fff;
  padding: 0 15px;
  font-size: 14px;
  transition: background-color 0.3s;
}
nav[role="navigation"] a:hover,
nav[role="navigation"] a[aria-current="page"] {
  background-color: #003d79;
}

/* ==============================================
   主内容区布局
   ============================================== */
.content-layout {
  display: flex;
  gap: 20px;
  margin: 10px 0;
}
.left-content { flex: 1; }
.right-content { flex: 3; }

/* ==============================================
   左侧轮播图（banner1-5.png）
   ============================================== */
.left-banner {
  border: 1px solid #ccc;
  margin-bottom: 10px;
  padding: 5px;
}
.banner-slider {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.banner-item {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-item.active { display: block; }

/* 轮播图页码指示器 */
.banner-pagination {
  text-align: center;
  margin: 5px 0;
}
.page {
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  background-color: #fff;
  border: 1px solid #ccc;
  margin: 0 2px;
  cursor: pointer;
}
.page.active {
  background-color: #005bac;
  color: #fff;
  border-color: #005bac;
}

.banner-title {
  text-align: center;
  font-weight: bold;
  margin-top: 5px;
}

/* ==============================================
   板块通用样式（通知/新闻/教科研）
   ============================================== */
.section-header {
  display: flex;
  align-items: center;
  border-bottom: 2px solid #005bac;
  margin-bottom: 10px;
  padding-bottom: 5px;
}
.section-header .icon {
  margin-right: 5px;
}
.section-header h3 {
  font-size: 16px;
  color: #005bac;
  flex: 1;
  margin: 0;
}
.section-header .more {
  color: #005bac;
  font-size: 12px;
}

/* 列表样式 */
.notice-board, .news-board, .research-board {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
}
.notice-board ul, .news-board ul, .research-board ul {
  padding-left: 5px;
}
.notice-board li, .news-board li, .research-board li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dotted #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-board li:last-child, .news-board li:last-child, .research-board li:last-child {
  border-bottom: none;
}
.date {
  color: #999;
  font-size: 12px;
  margin-left: 10px;
}

/* ==============================================
   友情链接
   ============================================== */
.friend-link select {
  width: 100%;
  padding: 5px;
  margin-top: 5px;
  border: 1px solid #ccc;
}

/* ==============================================
   页脚样式
   ============================================== */
footer[role="contentinfo"] {
  background-color: #e6f2ff;
  border-top: 2px solid #005bac;
  padding: 15px 0;
  margin-top: 20px;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.download-area, .report-mail, .contact-info {
  flex: 1;
  min-width: 200px;
}
.copyright {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: #666;
}

/* ==============================================
   列表页（新闻列表）专用样式
   ============================================== */
.news-list {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
}

.news-list ul {
    margin-bottom: 20px;
}

.news-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-list li:last-child {
    border-bottom: none;
}

/* 分页控件样式 */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.page-btn, .page-num {
    display: inline-block;
    padding: 5px 12px;
    margin: 0 3px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 2px;
}

.page-btn:hover, .page-num:hover {
    border-color: #005bac;
    color: #005bac;
    text-decoration: none;
}

.page-num.active {
    background-color: #005bac;
    color: #fff;
    border-color: #005bac;
}

/* ==============================================
   详情页（新闻详情/学院概况）专用样式
   ============================================== */
.news-detail, .overview-content {
    border: 1px solid #ccc;
    padding: 20px;
    line-height: 1.8;
}

.news-detail h2 {
    font-size: 22px;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 新闻元信息样式 */
.news-meta {
    text-align: center;
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.news-meta span {
    margin: 0 10px;
}

/* 新闻正文样式 */
.news-content {
    color: #333;
    font-size: 15px;
}

.news-content p {
    margin-bottom: 15px;
    text-indent: 2em; /* 首行缩进2字符 */
}

.news-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    padding: 5px;
}

/* 新闻上下篇导航 */
.news-nav {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
}

.news-nav p {
    margin: 8px 0;
}

.news-nav a:hover {
    color: #005bac;
    text-decoration: underline;
}

/* 学院概况详情页标题样式 */
.overview-content h2 {
    font-size: 22px;
    color: #005bac;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.overview-content h3 {
    font-size: 18px;
    color: #333;
    margin: 25px 0 10px;
}

.overview-content p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.overview-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border: 1px solid #eee;
    padding: 5px;
}

/* ==============================================
   学院概况页专用样式（匹配官网布局）
   ============================================== */
/* 面包屑导航 */
.breadcrumbs {
    padding: 8px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.breadcrumbs a {
    color: #005bac;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .current {
    color: #333;
    font-weight: bold;
}

/* 左侧通知公告/新闻动态 */
.left-content .section-header {
    background-color: #e6f2ff;
    border: none;
    padding: 8px 10px;
    margin-bottom: 0;
}

.left-content .section-header h3 {
    color: #005bac;
    font-size: 15px;
    margin: 0;
}

.notice-board, .news-board {
    border: 1px solid #ccc;
    margin-bottom: 15px;
}

.notice-board ul, .news-board ul {
    padding: 10px;
}

.notice-board li, .news-board li {
    padding: 6px 0;
    border-bottom: 1px dotted #eee;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-board li:last-child, .news-board li:last-child {
    border-bottom: none;
}

/* 右侧子菜单 */
.sub-menu {
    margin-bottom: 20px;
    border-bottom: 2px solid #005bac;
}

.sub-menu ul {
    display: flex;
    gap: 2px;
}

.sub-menu li {
    background-color: #f5f5f5;
}

.sub-menu a {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
}

.sub-menu a.active {
    background-color: #005bac;
    color: #fff;
    font-weight: bold;
}

.sub-menu a:hover {
    background-color: #e6f2ff;
    color: #005bac;
}

/* 学院简介内容 */
.overview-content {
    padding: 0 10px;
    line-height: 1.8;
}

.overview-content h2 {
    font-size: 20px;
    color: #005bac;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* 新闻列表页分页样式 */
.pagination {
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 13px;
}
.pagination a {
    display: inline-block;
    padding: 3px 8px;
    margin: 0 2px;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
}
.pagination a:hover {
    border-color: #005bac;
    color: #005bac;
}
.pagination input {
    padding: 2px;
    width: 40px;
}